package sql;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;

public class Lector {

	public static String lire(String nomFichier) {
		File fichier = new File(nomFichier);
		
		StringBuffer sb = new StringBuffer();
		
	    try {
	       BufferedReader in = new BufferedReader(new FileReader(fichier));
	       String line = null;
	       while ((line=in.readLine()) != null)
	    	   sb.append(line);
	       in.close();
	    }
	    catch (IOException ie)
	    {
	         ie.printStackTrace(); 
	    }
	    
	    return sb.toString();
	}
	
}
